package com.demo;

import java.io.IOException;

import javax.servlet.Servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public class MyServlet  implements Servlet {

	 public MyServlet() {
        System.out.println("in constructor");
	 }
	public void destroy() {
		System.out.println("in destroy");
	}

	public ServletConfig getServletConfig() {
		System.out.println("add Servelt servletConfig");
		return null;
	}

	public String getServletInfo() {
		System.out.println("add Servelt info");
		return null;
	}

	public void init(ServletConfig arg0) throws ServletException {
		System.out.println("add Servelt init");
		
	}

	public void service(ServletRequest arg0, ServletResponse arg1)
			throws ServletException, IOException {
		System.out.println("add Servelt service");
		
	}




}
